package com.woniuxy.micropermissionserver.permissionmanage.mapper;

import com.woniuxy.microcommonserver.bean.permission_hcz.Admin;
import com.woniuxy.microcommonserver.bean.permission_hcz.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PermissionMapper {

    void savePermission(Permission permission);

    List<String> findPermsByAdmin(@Param("a") Admin admin);

    List<Permission> findPermissionTreeByAdminId(Integer adminId);
}
